<h1>Editing region</h1>

<% form_for(@region, :url=>book_page_region_path(@region.book_id, @region.page_id, @region)) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :x %><br />
    <%= f.text_field :x %>
  </p>
  <p>
    <%= f.label :y %><br />
    <%= f.text_field :y %>
  </p>
  <p>
    <%= f.label :width %><br />
    <%= f.text_field :width %>
  </p>
  <p>
    <%= f.label :height %><br />
    <%= f.text_field :height %>
  </p>
  <p>
    <%= f.label :region_type %><br />
    <%= f.text_field :region_type %>
  </p>
  <p>
    <%= f.label :extra_data %><br />
    <%= f.text_field :extra_data %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', book_page_region_path(@region.book_id, @region.page_id, @region) %> |
<%= link_to 'Back', book_page_regions_path(@region.book_id, @region.page_id) %>
